Skip to content

Conversation

@dsugar100
Copy link
Contributor

I am using userdom_unpriv_user_template() to create an unprivileged user. That user was getting capabilities for chown, fowner and setgid. Unrpivileged users were also allowed process ptrace, which I moved into
userdom_admin_user_template().

After dropping these permissions, those users were still able to login to the console and GUI (lightdm/icewm - on RHEL9)

Note that this does not affect admin users - which get the capabilities in userdom_admin_user_template()

I am using userdom_unpriv_user_template() to create an
unprivileged user.  That user was getting capabilities
for chown, fowner and setgid.  Unrpivileged users were
also allowed process ptrace, which I moved into
userdom_admin_user_template().

After dropping these permissions, those users were still able
to login to the console and GUI (lightdm/icewm - on RHEL9)

Note that this does not affect admin users - which get
the capabilities in userdom_admin_user_template()

Signed-off-by: Dave Sugar <dsugar100@gmail.com>
@dsugar100
Copy link
Contributor Author

This change is to a bit of policy that has been around for a very long time. While I did a bit of testing, I clearly could be missing something that this is needed for. I would really appreciate any feedback on what this might be needed for.

I'm also looking at other places unprivileged users get process ptrace - I will make separate pull requests as I test things.

@pebenito
Copy link
Member

I'm ok with this change but will keep open for further comment.

@dsugar100
Copy link
Contributor Author

Thanks - yes, let's give it a few days for comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants